<!doctype html> 
<html ng-app='text'> 
<head> 
    <meta charset="utf-8"> 
    <title></title>
    <script type="text/javascript" src='angular.js'></script>
</head>
<script type="text/javascript">
	
var app = angular.module('text',[]);
app.controller('cont1',function ($scope){
	$scope.a = 10;
	$scope.alert = function(n){
		alert(n)
	}
	
})

</script>
<body ng-controller='cont1'>
<input type='button' ng-click='alert(a)' > 

</body>
</html>